//###################      FOOTER SCRIPT

$(window).load(function(){
      footer_bottom();
});

$(window).resize(function(){
      footer_bottom();
});

$('#log').click(function(){
      $('#popUp').css({display:"block"});
});

$('#popUpClose').click(function(){
      $('#popUp').css({display:"none"});
});
$('#buttonReset').click(function(){
      setTimeout(function(){
            $('#popUp').css({display:"none"});
      },1500);
});

var footer_bottom = function(){
      var asd = document.documentElement.scrollHeight;
      var a = document.documentElement.clientHeight;
      var b = document.getElementById('footer');
      var c = b.offsetHeight;
      b.style.position = "absolute";
      if(!(asd>a)){

            var d = a-c;
            b.style.top = d+"px";
      }else{
            //var d = asd-c;
            b.style.top = asd+"px";
      }
};
//####################      END OF FOOTER SCRIPT